package com.ygqh.baby.mapper;
import com.ygqh.baby.po.YgActivityGiveaway;
import com.ygqh.baby.po.YgActivityGiveawayExample;
import com.ygqh.baby.ao.QueryInfo;

import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface YgActivityGiveawayMapper {
    int countByExample(YgActivityGiveawayExample example);

    int deleteByExample(YgActivityGiveawayExample example);

    int deleteByPrimaryKey(Long id);

    int insert(YgActivityGiveaway record);

    int insertSelective(YgActivityGiveaway record);

    List<YgActivityGiveaway> selectByExample(YgActivityGiveawayExample example);

    YgActivityGiveaway selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") YgActivityGiveaway record, @Param("example") YgActivityGiveawayExample example);

    int updateByExample(@Param("record") YgActivityGiveaway record, @Param("example") YgActivityGiveawayExample example);

    int updateByPrimaryKeySelective(YgActivityGiveaway record);

    int updateByPrimaryKey(YgActivityGiveaway record);
    
    int countSuper(@Param ("q") String q,@Param("startDate") Date startDate,@Param("endDate") Date endDate,@Param("pStatus") String pStatus);
    
    List<YgActivityGiveaway> selectSuper(@Param("queryInfo") QueryInfo queryInfo, @Param ("q") String q,@Param("startDate") Date startDate,@Param("endDate") Date endDate,@Param("pStatus") String pStatus);
    
}



